-
Notifications
You must be signed in to change notification settings - Fork 17
feat: surface truncating & padding options #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: surface truncating & padding options #719
Conversation
a11d569 to
420a23c
Compare
|
/ok to test 7d99857 |
|
/ok to test 5e30ab6 |
|
/ok to test 2e62dc3 |
Signed-off-by: Alexandros Koumparoulis <[email protected]>
|
/ok to test 13e625b |
| return_dict=True, | ||
| return_assistant_tokens_mask=template_has_generation_kwd, | ||
| padding=padding, | ||
| truncation=truncation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly we truncate regardless of the template structure here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you!
Changes:
paddingandtruncationoptions in the formatting utils.